import time
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager

print("当前最新版本的webdriver:" + ChromeDriverManager().install())

token = 'c43cada9-6c39-4202-b75c-9b58bd6ed212'
 
options = webdriver.ChromeOptions()

# 这种写法好像不持支，我只能把 chromeDriver 的位置写道环境变量里了
# driver = webdriver.Chrome(executable_path=ChromeDriverManager().install(), options=options)
# 这个是绝对路径
driver = webdriver.Chrome(options=options)

# driver.get("https://bpm-center.geelycv-test.com/#/home/myAgent")
driver.get("https://baidu.com")

# js='window.localStorage.setItem("token","' + token +'")'
# driver.execute_script(js)
# driver.refresh()#刷新
 
# 最大化浏览器
# driver.maximize_window()
time.sleep(99999)
driver.close()